<?php session_start();
$_SESSION["previouspage"] = $_SERVER['HTTP_REFERER'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/template.css" />
<link rel="stylesheet" type="text/css" href="css/home.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
<title>CoRAL- Register</title>
</head>
<body>
<div id="body-wrapper">
<?php include_once 'static/header.html'; ?>
<div id="body">
	<div id="content">	
		<form name="register" action="controller/register.php" method="post">
			<h1 align="center">Register</h1>
			<p align="center"><?php echo $_SESSION["errmsg"];?></p>
			<table align="center">
			<tr>
			<td class="labelright"><label for="accountNo"><strong>User Name</strong><font color="red">*</font></label></td>
			<td><input id="account" type="text" name="accountNo" maxlength="20" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="password"><strong>Password</strong><font color="red">*</font></label></td>
			<td><input name="password" id="psword" type="password" maxlength="16" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="confirmpassword"><strong>Confirm password</strong><font color="red">*</font></label></td>
			<td><input name="confrimpassword" id="confirmpsword" type="password" maxlength="16" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="name"><strong>Name</strong><font color="red">*</font></label></td>
			<td><input name="name" id="name" type="text" maxlength="20" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="email"><strong>E-mail</strong><font color="red">*</font></label></td>
			<td><input name="email" id="email" type="text" maxlength="30" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="affiliation"><strong>Affiliation&nbsp;</strong></label></td>
			<td><input name="affiliation" id="affiliation" type="text" maxlength="40" size="20" value=""/></td>
			</tr>
			<tr>
			<td class="labelright"><label for="description"><strong>A brief description&nbsp;</strong></label></td>
			<td><input name="description" id="description" type="text" maxlength="80" size="20" value=""/></td>
			</tr>						
			<tr>
			<td></td>
			<td><input type="submit" name="button" value="Register" /></td>
			</tr>
			</table>
		</form>
	</div>
</div>
<?php include_once 'static/footer.html'; ?>
</div>
</body>
</html>